package com.english.numbers;

import com.english.numbers.R;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class About extends Activity implements OnClickListener {
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        SharedPreferences settings = getSharedPreferences("Com.numbers.learn", 0);
        boolean exit = settings.getBoolean("exit", false);
        if(exit == true)
        	About.this.finish();
        
    	setContentView(R.layout.about);
    	Button backToMain = (Button) findViewById(R.id.about_backInMenu);
    	backToMain.setOnClickListener(this);
    }
	@Override
	public void onClick(View v) {
    	Intent myIntent = new Intent(About.this, Start.class);
    	About.this.startActivity(myIntent);
    	About.this.finish();
	}
}
